/**
 * Copyright (c) 2023 myons Inc. All rights reserved.
 */
package cn.zmwh.common.core.api;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @describe: 分页 、
 * @author: dmzmwh 、
 * @time: 2023-04-11 21:13 、
 */
public class PageEntity<T> implements Serializable {

    @ApiModelProperty(value = "总数")
    private Long total = 0L;
    @ApiModelProperty(value = "数据")
    private List<T> list;

    @ApiModelProperty(value = "扩展信息")
    private Object extra;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Object getExtra() {
        return extra;
    }

    public void setExtra(Object extra) {
        this.extra = extra;
    }
}
